package com.kfm.jdbc.day0330;

import java.io.*;

public class Exer01 {

    public static void main(String[] args) {
        try(FileInputStream fis = new FileInputStream("d:\\开发喵4就业信息表-20230215.xlsx");
            FileOutputStream fos = new FileOutputStream("d:\\io\\a.xlsx");
        ){
            // excel 表格的内容读取到内存中
            byte[] bytes = fis.readAllBytes();
            // 写出到文件中
            fos.write(bytes);

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
